﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CommonTagTime.ModelObject
{
    public class ContentProduct
    {
        //------------------------------------------------
        //VARIABLE
        //------------------------------------------------
        private int _TotalRecords;
        private int _CurrentPage;
        private int _PageSize;
        private string _OrderBy;
        private string _OrderDirection;
        private string _Condition;
        private int _PageId;
        private int _Language;
        private string _PageURL;
        private string _Name;
        private string _Title;
        private string _Content;
        private string _MetaDescription;
        private string _MetaKeywords;      
        private string _CreatedBy;
        private DateTime _CreatedDate;
        private string _UpdatedBy;
        private DateTime _UpdatedDate;  

        //------------------------------------------------
        //PROPERTY
        //------------------------------------------------
        public int PageId
        {
            get { return _PageId; }
            set { _PageId = value; }
        }
        public int Language
        {
            get { return _Language; }
            set { _Language = value; }
        }
        public string PageURL
        {
            get { return _PageURL; }
            set { _PageURL = value; }
        }
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        public string Title
        {
            get { return _Title; }
            set { _Title = value; }
        }
        public string Content
        {
            get { return _Content; }
            set { _Content = value; }
        }
        public string MetaDescription
        {
            get { return _MetaDescription; }
            set { _MetaDescription = value; }
        }

        public string MetaKeywords
        {
            get { return _MetaKeywords; }
            set { _MetaKeywords = value; }
        }       
        public string CreatedBy
        {
            get { return _CreatedBy; }
            set { _CreatedBy = value; }
        }
        public DateTime CreatedDate
        {
            get { return _CreatedDate; }
            set { _CreatedDate = value; }
        }
        public string UpdatedBy
        {
            get { return _UpdatedBy; }
            set { _UpdatedBy = value; }
        }
        public DateTime UpdatedDate
        {
            get { return _UpdatedDate; }
            set { _UpdatedDate = value; }
        }

        public int TotalRecords
        {
            get { return _TotalRecords; }
            set { _TotalRecords = value; }
        }

        public string OrderBy
        {
            get { return _OrderBy; }
            set { _OrderBy = value; }
        }

        public string OrderDirection
        {
            get { return _OrderDirection; }
            set { _OrderDirection = value; }
        }

        public int CurrentPage
        {
            get { return _CurrentPage; }
            set { _CurrentPage = value; }
        }

        public int PageSize
        {
            get { return _PageSize; }
            set { _PageSize = value; }
        }
        public string Condition
        {
            get { return _Condition; }
            set { _Condition = value; }
        }
        public ContentProduct()
        {
            _CurrentPage = 0;
            _PageSize = 0;
            _TotalRecords = 0;
            _Condition = string.Empty;           
            _Title = string.Empty;
            _PageId = int.MinValue;
            _PageURL = string.Empty;
            _OrderBy = "Title";
            _OrderDirection = "ASC";
            _MetaDescription = string.Empty;
            _MetaKeywords = string.Empty;
            _Content = string.Empty;
            _Language = int.MinValue;
        }
    }

    public class ContentProductCollection : List<ContentProduct>
    { }
}


